<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>添加分类 - <?php echo $this->_lang['site_title']; ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="<?php echo $_config['url']['css']; ?>base.css" rel="stylesheet" type="text/css">
  <script type="text/javascript">
  <!--
	function check_form()
	{
		var f = document.getElementById('f1');
		if( f.cate.value == '' )
		{
			alert('子类名称不能为空');
			f.cate.focus();
			return false;
		}

		f.submit.disabled = true;
		return true;
	}

  //-->
  </script>
 </head>

 <body>
 <div id="mask">
<?php echo $layout_header; ?>
<div style="margin:0 auto;width:550px;padding-top:25px;">
 <fieldset style="width:100%; border:1px solid #A5A5A5;text-align:left;font-size:12px;font-family:Verdana;padding:15px;">
 <legend style="color:#A5A5A5;font-size:16px;">添加分类</legend>

<table border="0" align="center" cellpadding="0" cellspacing="0" width="100%">
<form id="f1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" onSubmit="javascript:return check_form();">
<tr>
		<td style="background-color:#CCCCCC"><table id="innerTable" border="0" width="100%" align="center" cellpadding="5" cellspacing="1">
	<tr>
		<td width="70" style="background-color:#FFFFFF;">类别：</td>
		<td style="background-color:#FFFFFF;"><select name="parent_cate_cname" id="parent_cate_cname"><?php echo $data['cate_list']; ?></select> *</td>
	</tr>
	<tr>
		<td width="70" style="background-color:#FFFFFF;">子类名称：</td>
		<td style="background-color:#FFFFFF;"><input type="text" name="cate" id="cate"/> * 1~8个中文</td>
	</tr>
	<tr>
		<td style="background-color:#FFFFFF;">&nbsp;</td>
		<td style="background-color:#FFFFFF;"><input type="submit" name="submit" id="submit" value="提交" /> <input type="button" name="back" id="back" value="取消" onClick="javascript: history.back();"/></td>
	</tr>
</table>
</td>
	</tr>
	</form>
</table>
</fieldset>
</div>

<?php echo $layout_footer; ?>
</div>
</body>
</html>
